﻿using Wizard.UI;

namespace TestWizard
{
    public partial class AdvancedPasswordOptionsPage : InternalWizardPage
    {
        private readonly CreateUserContext _context;

        public AdvancedPasswordOptionsPage(CreateUserContext context)
        {
            _context = context;
            InitializeComponent();
        }

        private void AdvancedPasswordOptionsPage_WizardNext(object sender, WizardPageEventArgs e)
        {
            _context.UserMustChangePassword = userMustChangePasswordCheckBox.Checked;
            _context.UserCannotChangePassword = userCannotChangePasswordCheckBox.Checked;
            _context.PasswordNeverExpires = passwordNeverExpiresCheckBox.Checked;
        }
    }
}
